package gui;

import java.awt.Color;
import java.awt.Font;
import java.net.URL;

import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 * @author Ramy Refky 
 * */
public class AboutPanel extends JPanel{

	private static final long serialVersionUID = 1L;

	URL  gucLogoURL= getClass().getResource("graphics/gucLogo2.png");
	ImageIcon gucLogoImageIcon = new ImageIcon(gucLogoURL);
	JLabel gucLogo;
	
	public AboutPanel(){
		
		setBounds(450,150,150,220);
		setBackground(Color.gray);
		setBorder(BorderFactory.createLineBorder(Color.black,3));
		setVisible(true);
		setLayout(null);
		
		JLabel title = new JLabel("About");
		title.setBounds(60,0,90,25);
		title.setForeground(Color.white);
		add(title);
		
		JLabel title2 = new JLabel("Schematic Builder v1.1");
		title2.setBounds(10,30,140,25);
		title2.setForeground(Color.white);
		add(title2);
		
		JLabel title3 = new JLabel("Developed by:");
		title3.setBounds(10,60,100,25);
		title3.setForeground(Color.white);
		add(title3);
		
		JLabel title4 = new JLabel("Ramy Refky");
		title4.setBounds(20,75,100,25);
		title4.setForeground(Color.white);
		add(title4);
		
		JLabel title5 = new JLabel("ramy.refky@student.guc.edu.eg");
		title5.setBounds(5,90,200,25);
		title5.setForeground(Color.white);
		title5.setFont(new Font("default", Font.PLAIN, 9));
		add(title5);
		
		JLabel title6 = new JLabel("Supervised by:");
		title6.setBounds(10,120,200,25);
		title6.setForeground(Color.white);
		add(title6);
		
		JLabel title7 = new JLabel("Dr. Cherif Salama");
		title7.setBounds(20,135,100,25);
		title7.setForeground(Color.white);
		add(title7);
		
		JLabel title8 = new JLabel("cherif.salama@guc.edu.eg");
		title8.setBounds(5,150,200,25);
		title8.setForeground(Color.white);
		title8.setFont(new Font("default", Font.PLAIN, 9));
		add(title8);
		
		gucLogo = new JLabel(gucLogoImageIcon);
		gucLogo.setBounds(19,177,112,38);
		add(gucLogo);
		setVisible(false);
	}
}
